| Filename | (eval 433)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
| Statements | Executed 54 statements in 1.23ms |
| Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
| Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 2 | 2 | 2 | 218µs | 6.68ms | JSON::Schema::Modern::Result::new |
| 1 | 1 | 1 | 76µs | 195µs | JSON::Schema::Modern::Result::BEGIN@13.338 |
| 1 | 1 | 1 | 15µs | 44µs | JSON::Schema::Modern::Result::BEGIN@91 |
| 1 | 1 | 1 | 14µs | 36µs | JSON::Schema::Modern::Result::BEGIN@54 |
| 1 | 1 | 1 | 12µs | 12µs | JSON::Schema::Modern::Result::BEGIN@18.339 |
| 1 | 1 | 1 | 11µs | 19µs | JSON::Schema::Modern::Result::BEGIN@59 |
| 1 | 1 | 1 | 11µs | 17µs | JSON::Schema::Modern::Result::BEGIN@99 |
| 1 | 1 | 1 | 8µs | 15µs | JSON::Schema::Modern::Result::BEGIN@83 |
| 1 | 1 | 1 | 3µs | 9µs | JSON::Schema::Modern::Result::BEGIN@123 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | { | ||||
| 2 | 2 | 19µs | my $isa_check_for_formatted_5fannotations = ${$_[1]->{"\$isa_check_for_formatted_5fannotations"}}; | ||
| 3 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
| 4 | 1 | 0s | my $isa_check_for_exception = ${$_[1]->{"\$isa_check_for_exception"}}; | ||
| 5 | 1 | 0s | my $isa_check_for_annotations = ${$_[1]->{"\$isa_check_for_annotations"}}; | ||
| 6 | 1 | 0s | my $coerce_for_valid = ${$_[1]->{"\$coerce_for_valid"}}; | ||
| 7 | 1 | 0s | my $isa_check_for_output_5fformat = ${$_[1]->{"\$isa_check_for_output_5fformat"}}; | ||
| 8 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
| 9 | 1 | 0s | my $isa_check_for_valid = ${$_[1]->{"\$isa_check_for_valid"}}; | ||
| 10 | 1 | 0s | my $coerce_for_exception = ${$_[1]->{"\$coerce_for_exception"}}; | ||
| 11 | 1 | 0s | my $isa_check_for_errors = ${$_[1]->{"\$isa_check_for_errors"}}; | ||
| 12 | package JSON::Schema::Modern::Result; | ||||
| 13 | 2 | 98µs | 2 | 314µs | # spent 195µs (76+119) within JSON::Schema::Modern::Result::BEGIN@13.338 which was called:
# once (76µs+119µs) by Sub::Quote::_clean_eval at line 13 # spent 195µs making 1 call to JSON::Schema::Modern::Result::BEGIN@13.338
# spent 119µs making 1 call to warnings::unimport |
| 14 | # spent 6.68ms (218µs+6.46) within JSON::Schema::Modern::Result::new which was called 2 times, avg 3.34ms/call:
# once (124µs+6.37ms) by JSON::Schema::Modern::evaluate at line 382 of JSON/Schema/Modern.pm
# once (94µs+97µs) by JSON::Schema::Modern::evaluate at line 177 of Sub/Defer.pm | ||||
| 15 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
| 16 | # BEGIN quote_sub PRELUDE | ||||
| 17 | package JSON::Schema::Modern::Result; | ||||
| 18 | # spent 12µs within JSON::Schema::Modern::Result::BEGIN@18.339 which was called:
# once (12µs+0s) by Sub::Quote::_clean_eval at line 23 | ||||
| 19 | 1 | 2µs | $^H = 2018; | ||
| 20 | 1 | 0s | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
| 21 | 1 | 4µs | %^H = ( | ||
| 22 | ); | ||||
| 23 | 1 | 217µs | 1 | 12µs | } # spent 12µs making 1 call to JSON::Schema::Modern::Result::BEGIN@18.339 |
| 24 | # END quote_sub PRELUDE | ||||
| 25 | 1 | 1µs | my $invoker = CORE::shift(); | ||
| 26 | 1 | 1µs | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
| 27 | 1 | 0s | if ($class ne "JSON::Schema::Modern::Result") { | ||
| 28 | if ($Moo::MAKERS{$class}) { | ||||
| 29 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
| 30 | package JSON::Schema::Modern::Result; | ||||
| 31 | return $invoker->SUPER::new(@_); | ||||
| 32 | } | ||||
| 33 | Moo->_constructor_maker_for($class); | ||||
| 34 | return $invoker->new(@_); | ||||
| 35 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
| 36 | return $meta->new_object( | ||||
| 37 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
| 38 | : $class->Moo::Object::BUILDARGS(@_) | ||||
| 39 | ); | ||||
| 40 | } | ||||
| 41 | } | ||||
| 42 | my $args = scalar @_ == 1 | ||||
| 43 | ? CORE::ref $_[0] eq 'HASH' | ||||
| 44 | 1 | 2µs | ? { %{ $_[0] } } | ||
| 45 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
| 46 | . " data => ". $_[0]) | ||||
| 47 | : @_ % 2 | ||||
| 48 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
| 49 | . " key/value list. You passed an odd number of arguments") | ||||
| 50 | : {@_} | ||||
| 51 | ; | ||||
| 52 | 1 | 1µs | my $new = bless({}, $class);; | ||
| 53 | (exists $args->{"annotations"} and ($new->{"annotations"} = scalar do { my $value = $args->{"annotations"}; | ||||
| 54 | 2 | 217µs | 2 | 58µs | # spent 36µs (14+22) within JSON::Schema::Modern::Result::BEGIN@54 which was called:
# once (14µs+22µs) by Sub::Quote::_clean_eval at line 54 # spent 36µs making 1 call to JSON::Schema::Modern::Result::BEGIN@54
# spent 22µs making 1 call to warnings::unimport |
| 55 | $value | ||||
| 56 | } | ||||
| 57 | )), | ||||
| 58 | (exists $args->{"errors"} and ($new->{"errors"} = scalar do { my $value = $args->{"errors"}; | ||||
| 59 | 2 | 109µs | 2 | 27µs | # spent 19µs (11+8) within JSON::Schema::Modern::Result::BEGIN@59 which was called:
# once (11µs+8µs) by Sub::Quote::_clean_eval at line 59 # spent 19µs making 1 call to JSON::Schema::Modern::Result::BEGIN@59
# spent 8µs making 1 call to warnings::unimport |
| 60 | $value | ||||
| 61 | } | ||||
| 62 | )), | ||||
| 63 | (exists $args->{"exception"} and ($new->{"exception"} = scalar do { my $value = do { | ||||
| 64 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
| 65 | init_arg => "exception", | ||||
| 66 | name => "exception", | ||||
| 67 | step => "coercion", | ||||
| 68 | }; | ||||
| 69 | (my $_return), | ||||
| 70 | (my $_error), (my $_old_error = $@); | ||||
| 71 | (eval { | ||||
| 72 | ($@ = $_old_error), | ||||
| 73 | ($_return = | ||||
| 74 | $coerce_for_exception->($args->{"exception"})), | ||||
| 75 | 1 | ||||
| 76 | } or | ||||
| 77 | $_error = CORE::ref $@ ? $@ : "coercion for \"exception\" failed: ".$@); | ||||
| 78 | ($@ = $_old_error), | ||||
| 79 | (defined $_error and CORE::die $_error); | ||||
| 80 | $_return; | ||||
| 81 | } | ||||
| 82 | ; | ||||
| 83 | 2 | 67µs | 2 | 22µs | # spent 15µs (8+7) within JSON::Schema::Modern::Result::BEGIN@83 which was called:
# once (8µs+7µs) by Sub::Quote::_clean_eval at line 83 # spent 15µs making 1 call to JSON::Schema::Modern::Result::BEGIN@83
# spent 7µs making 1 call to warnings::unimport |
| 84 | $value | ||||
| 85 | } | ||||
| 86 | )), | ||||
| 87 | ($new->{"formatted_annotations"} = scalar do { my $value = ( | ||||
| 88 | exists $args->{"formatted_annotations"} | ||||
| 89 | 1 | 0s | ? $args->{"formatted_annotations"} | ||
| 90 | : 1); | ||||
| 91 | 5 | 90µs | 2 | 73µs | # spent 44µs (15+29) within JSON::Schema::Modern::Result::BEGIN@91 which was called:
# once (15µs+29µs) by Sub::Quote::_clean_eval at line 91 # spent 44µs making 1 call to JSON::Schema::Modern::Result::BEGIN@91
# spent 29µs making 1 call to warnings::unimport |
| 92 | $value | ||||
| 93 | } | ||||
| 94 | ), | ||||
| 95 | ($new->{"output_format"} = scalar do { my $value = ( | ||||
| 96 | exists $args->{"output_format"} | ||||
| 97 | 1 | 0s | ? $args->{"output_format"} | ||
| 98 | : "basic"); | ||||
| 99 | 5 | 130µs | 3 | 25µs | # spent 17µs (11+6) within JSON::Schema::Modern::Result::BEGIN@99 which was called:
# once (11µs+6µs) by Sub::Quote::_clean_eval at line 99 # spent 17µs making 1 call to JSON::Schema::Modern::Result::BEGIN@99
# spent 6µs making 1 call to warnings::unimport
# spent 2µs making 1 call to Type::Tiny::CORE:match |
| 100 | $value | ||||
| 101 | } | ||||
| 102 | ), | ||||
| 103 | 1 | 0s | (exists $args->{"valid"} and ($new->{"valid"} = scalar do { my $value = do { | ||
| 104 | 1 | 24µs | local $Method::Generate::Accessor::CurrentAttribute = { | ||
| 105 | init_arg => "valid", | ||||
| 106 | name => "valid", | ||||
| 107 | step => "coercion", | ||||
| 108 | }; | ||||
| 109 | 1 | 0s | (my $_return), | ||
| 110 | (my $_error), (my $_old_error = $@); | ||||
| 111 | 1 | 0s | (eval { | ||
| 112 | ($@ = $_old_error), | ||||
| 113 | ($_return = | ||||
| 114 | 1 | 9µs | 1 | 64µs | $coerce_for_valid->($args->{"valid"})), # spent 64µs making 1 call to JSON::Schema::Modern::Result::__ANON__[JSON/Schema/Modern/Result.pm:38] |
| 115 | 1 | ||||
| 116 | } or | ||||
| 117 | $_error = CORE::ref $@ ? $@ : "coercion for \"valid\" failed: ".$@); | ||||
| 118 | 1 | 0s | ($@ = $_old_error), | ||
| 119 | (defined $_error and CORE::die $_error); | ||||
| 120 | 1 | 1µs | $_return; | ||
| 121 | } | ||||
| 122 | ; | ||||
| 123 | 5 | 202µs | 4 | 17µs | # spent 9µs (3+6) within JSON::Schema::Modern::Result::BEGIN@123 which was called:
# once (3µs+6µs) by Sub::Quote::_clean_eval at line 123 # spent 9µs making 1 call to JSON::Schema::Modern::Result::BEGIN@123
# spent 6µs making 1 call to warnings::unimport
# spent 1µs making 1 call to Scalar::Util::blessed
# spent 1µs making 1 call to UNIVERSAL::isa |
| 124 | $value | ||||
| 125 | } | ||||
| 126 | )), | ||||
| 127 | (($args)[0]->{__no_BUILD__} or ( | ||||
| 128 | 1 | 33µs | 1 | 29µs | $new->JSON::Schema::Modern::Result::BUILD($args), # spent 29µs making 1 call to JSON::Schema::Modern::Result::BUILD |
| 129 | )), | ||||
| 130 | return $new; | ||||
| 131 | } | ||||
| 132 | 1 | 2µs | $$_UNQUOTED = \&new; | ||
| 133 | } | ||||
| 134 | 1 | 6µs | 1; | ||
| 135 | |||||
| 136 | ; |